package server

import (
	"gitee.com/sdynasty/clever/sessions"
	"github.com/golang/protobuf/proto"
)

type IRouter interface {
	// 注册消息
	Register(cmd uint16, f func(*sessions.Session, proto.Message, uint16), afterSignIn bool)
	// 处理消息
	HandleMessage (sess *sessions.Session, data []byte)
}
